﻿// MoveContinueData.cpp: 实现文件
//

#include "pch.h"
#include "LiWi.h"
#include "afxdialogex.h"
#include "MoveContinueData.h"

MoveContinue* Cv_MainDlg;
// MoveContinueData 对话框

IMPLEMENT_DYNAMIC(MoveContinueData, CDialogEx)

MoveContinueData::MoveContinueData(CWnd* pParent /*=nullptr*/)
	: CDialogEx(IDD_MoveContinueData, pParent)
{

}

MoveContinueData::~MoveContinueData()
{
}

void MoveContinueData::DoDataExchange(CDataExchange* pDX)
{
	CDialogEx::DoDataExchange(pDX);
}


BEGIN_MESSAGE_MAP(MoveContinueData, CDialogEx)
	ON_BN_CLICKED(IDOK, &MoveContinueData::OnBnClickedOk)
END_MESSAGE_MAP()


// MoveContinueData 消息处理程序


void MoveContinueData::OnBnClickedOk()
{
	// TODO: 在此添加控件通知处理程序代码

	GetDlgItem(IDC_Point0)->GetWindowTextW(point0);
	GetDlgItem(IDC_Point1)->GetWindowTextW(point1);
	GetDlgItem(IDC_Point2)->GetWindowTextW(point2);
	GetDlgItem(IDC_Point3)->GetWindowTextW(point3);
	GetDlgItem(IDC_Speed)->GetWindowTextW(speed);
	CDialogEx::OnOK();
}


BOOL MoveContinueData::OnInitDialog()
{
	CDialogEx::OnInitDialog();

	// TODO:  在此添加额外的初始化
	Cv_MainDlg = (MoveContinue*)AfxGetMainWnd();
	GetDlgItem(IDC_Point0)->SetWindowTextW(TEXT("0"));
	GetDlgItem(IDC_Point1)->SetWindowTextW(TEXT("0"));
	GetDlgItem(IDC_Point2)->SetWindowTextW(TEXT("0"));
	GetDlgItem(IDC_Point3)->SetWindowTextW(TEXT("0"));
	GetDlgItem(IDC_Speed)->SetWindowTextW(TEXT("100"));
	return TRUE;  // return TRUE unless you set the focus to a control
	// 异常: OCX 属性页应返回 FALSE
}
